package com.big.model.model.record;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

@Data
@ApiModel(value="订单商品记录表")
@TableName("merchandise_order_record")
public class MerchandiseOrderRecord {

       @ApiModelProperty(value = "订单编号")
       @TableField(value = "o_id")
       private String oId;

       @ApiModelProperty(value = "商品编号")
       @TableField(value = "m_id")
       private Long mId;

       @ApiModelProperty(value = "单价")
       @TableField(value = "m_price")
       private double mPrice;

       @ApiModelProperty(value = "数量")
       @TableField(value = "m_num")
       private Integer mNum;

       @ApiModelProperty(value = "小计")
       @TableField(value = "m_subtotal")
       private double mSubtotal;

       @ApiModelProperty(value = "套餐编号")
       @TableField(value = "packId")
       private Long packId;

       @ApiModelProperty(value = "其他参数")
       @TableField(exist = false)
       private Map<String,Object> param = new HashMap<>();

}
